#ifndef NODEOUTPORT_H
#define NODEOUTPORT_H

#include "nodeport.h"

class AbstractShapeItem;
class xOutMappingPort;

class NodeOutPort :
	public NodePort
{
public:
	NodeOutPort(xOutMappingPort*, AbstractShapeItem*);
	~NodeOutPort(void);
	void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
	QRectF boundingRect() const;
	int getClass();
	int getCategory();
	xOutMappingPort* getOutport();

	void setDrawName( bool drawName );

protected:
	xOutMappingPort* _outport;
	AbstractShapeItem* _parent;
	void mouseReleaseEvent( QGraphicsSceneMouseEvent* );

private:
	bool drawName_;
};

#endif
